<?php
require_once "../Common/database.php";

$query="UPDATE tblInvertory SET Branch='$_POST[branch]', Department='$_POST[department]', Type='$_POST[type]', CheckedBy='$_POST[checkedby]', DateChecked='$_POST[date]', Reason='$_POST[reason]', Action='$_POST[action]', Faulty='$_POST[faulty]', Status='$_POST[status]' Where 'key'='$_POST[key]' ";
mysql_query($query);
#echo $query ;
echo '<h3><center>Updated ID :  '.$_POST[key];
echo '<p><a href="../index.php?m=i&p=iview">Back</a>';
?>